/**
 * @Description:    路由列表
 * @Author:         TSY
 * @Email:          t@tsy6.com
 * @CreateDate:     2019/3/31 11:56
 */

import { AsyncComponent } from 'vue'
import { RouteConfig } from 'vue-router'

//首页
const Home: AsyncComponent = (): any => import('@/views/home/Home');

//文集
const Article: AsyncComponent = (): any => import('@/views/article/Article');
const ArticleDetail: AsyncComponent = (): any => import('@/views/article/ArticleDetail');

//娱乐
const Amusement: AsyncComponent = (): any => import('@/views/amusement/Amusement');

//关于
const About: AsyncComponent = (): any => import('@/views/about/About');


export const routes: RouteConfig[] = [
    {path: '/', name: 'home', component: Home, meta: {title: '哈希空间_HashTang的个人空间-唐士瀛(TSY)'}},
    {path: '/article', name: 'article', component: Article, meta: {title: '哈希空间_HashTang的个人空间-唐士瀛(TSY)'}},
    {path: '/article/detail', name: 'articleDetail', component: ArticleDetail, meta: {title: '哈希空间_HashTang的个人空间-唐士瀛(TSY)'}},
    {path: '/amusement', name: 'amusement', component: Amusement, meta: {title: 'HashTang的娱乐空间'}},
    {path: '/about', name: 'about', component: About, meta: {title: '关于我'}},
]
